<div class="boxer">
	<div class="box">
		<div class="catname">
			<h2 class="user-creat-ico">新增人员信息</h2>
		</div>
		<div class="jiaose-from backfff">
		<form action="/user/add" method="post">
			<table width="90%" border="0" cellspacing="0" cellpadding="0" class="margin_ten">
				<tr>
					<td width="150"><i>*</i>用户名</td>
					<td><input type="text" class="t" name="Account"/><sapn style="color:red"></span></td>
				</tr>
				<tr>
					<td width="150"><i>*</i>密码</td>
					<td><input type="password" class="t"  name="Password"/><sapn style="color:red"></span></td>
				</tr>
				<tr>
					<td width="150"><i>*</i>确认密码</td>
					<td><input type="password" class="t"  name="RePassword"/><sapn style="color:red"></span></td>
				</tr>
				<tr>
					<td>状态</td>
					<td><select name="Status" id="status">
							{{range $index, $elem := .StatusList}}
								<option value="{{$index}}">{{$elem}}</option>	
							{{end}}
					</select></td>
				</tr>
				<tr>
					<td width="150"><i>*</i>人员姓名</td>
					<td><input type="text" class="t" name="Name"/><sapn style="color:red"></span></td>
				</tr>
				<tr>
					<td width="150">角色名称<sapn style="color:red"></span></td>
					<td><select name="Roles" id="jiaose">
					{{range .RoleList}}
						<option value="{{.Id}}">{{.Name}}</option>
					{{end}}
					</select></td>
				</tr>

				<tr>
					<td width="150"><i>*</i>工号</td>
					<td><input type="text" class="t" name="JobNumber"/><sapn style="color:red"></span></td>
				</tr>
				<tr>
					<td width="150"><i>*</i>职务</td>
					<td><input type="text" class="t" name="Duty"/><sapn style="color:red"></span></td>
				</tr>
				<tr>
					<td colspan="2" class="">
						<sapn style="color:red">{{.flash.error}}</span>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="btn">
						<input type="submit" value="确定" />
						<button class="cancel" >取消</button>
					</td>
				</tr>
				
		
			</table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
jQuery(function($){
	nku.droplist.config({'theme':'win7'}).play('status');
	nku.droplist.config({'theme':'win7'}).play('jiaose');
	
	$(".cancel").click(function(){
		$("form")[0].reset()
		return false;
	});
});
</script>